package cn.practice._06interceptor.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/v1/users/")
@Api(tags = "用户模块")
public class UserController {

    @GetMapping ("login")
    @ApiOperation("登录")
    public String login() {
        return "login success";
    }

    @ApiOperation("注册")
    @GetMapping("register")
    public String reg() {
        return "register success";
    }

    @ApiOperation("修改密码")
    @GetMapping("pwd")
    public String pwd() {
        return "pwd success";
    }
}
